package com.yyq.educms.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yyq
 * @create 2021-05-19 14:39
 */
@Component
@FeignClient("service-edu")
public interface courseClient {
    //根据课程名称获取课程id
    @GetMapping("getCourseIdByName/{name}")
    public String getCourseIdByName(@PathVariable("name") String name);
}
